package com.efast.cafe.portal.service.common;

import java.util.List;

import com.efast.cafe.portal.bean.common.AttachmentBean;
import com.efast.cafe.portal.bean.common.AttachmentFormBean;
import com.efast.cafe.portal.bean.common.FileUploadReturnBean;
import com.efast.cafe.portal.entity.common.PortalAttachment;
import com.efast.cafe.portal.entity.common.PortalAttachmentForm;
import com.efast.cafe.portal.remote.common.PortalAttachmentService;


/******************************************************************************
 * @File name : PortalAttachmentService.java
 * 
 * @Author : fxm
 * 
 * @Date : 2016-11-18
 * 
 * @Copyright Notice: Copyright (c) 2016 Efast Serv. All Rights Reserved. This
 *            software is published under the terms of the Efast Software
 *            License version 1.0, a copy of which has been included with this
 *            distribution in the LICENSE.txt file.
 * 
 *            ------------------------------------------------------------------
 *            ---------- Date Who Version Comments 2016-11-18 下午2:11:53 fxm 1.0
 *            Initial Version
 *****************************************************************************/
public interface IPortalAttachmentService extends PortalAttachmentService{

	public List<FileUploadReturnBean> saveAttrachment(List<PortalAttachment> portalAttachments);
	
	public void deleteAttrachment(Integer attrachmentId);
	
	public List<AttachmentBean> findAttachList(String formId,String group);
	
	public List<List<AttachmentBean>> findAttachListByTask(AttachmentFormBean attach);
	
	
	
	public PortalAttachment queryAttachmentById(Integer id);
	/**
	 * 返回下载地址 time为过期时间
	 * @param attachmentId
	 * @param time
	 * @return
	 */
	public String queryTempDownloadUrl(Integer attachmentId,String time);

	void attachmentEdit(AttachmentBean bean);

	public List<AttachmentBean> attachmentListTable(String formId, String groupId);
}
